    
        <%-- 
    Document   : HeaderApple
    Created on : Oct 6, 2011, 11:34:05 PM
    Author     : kijoo
--%>


<%@page import="MODEL.POJO.SanPhamPOJO"%>
<%@page import="MODEL.DAO.SanPhamDAO"%>
<%@page import="MODEL.DAO.DanhMucDAO"%>
<%@page import="MODEL.POJO.DanhMucPOJO"%>
<%@page import="MODEL.POJO.LoaiDanhMucPOJO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
    <div class="menudrop">
        <!--Menu loai danh muc CHA--> 
        <ul>
            <li><a href="HomeController?Action=APPLE&idloaisanpham=APPLE" id="current"/><img src="images/menu_ngang_trai.gif" /></li>
            <%
                String idloaisp=(String)request.getAttribute("IDLoaiSPchitiet");
                String loaisanpham=(String)request.getAttribute("LoaiSanPhams");
                ArrayList<LoaiDanhMucPOJO> ds = (ArrayList<LoaiDanhMucPOJO>) request.getAttribute("LoaiDanhMucs");
                for (int i = 0; i < ds.size(); i++) {
                    LoaiDanhMucPOJO ldm = ds.get(i);

            %>
            <li><a href="DanhSachSanPhamAPController?Action=<%=loaisanpham %>&idloaidanhmuc=<%=ldm.getIdloaidanhmuc()%>&tenloaidanhmuc=<%=ldm.getTenloaidanhmuc()%>&Trang=1" id="current"/><%=ldm.getTenloaidanhmuc()%></a>
            </li>
            <%}%>
            <!--<li><a href="#" id="current" />Download báo giá</li>-->
        </ul>
    </div>
